"""
    定义通用断言函数
"""


def common_assert(resp, status_code, suceess, code, message):
    assert status_code == resp.status_code
    assert suceess == resp.json().get("success")
    assert code == resp.json().get("code")
    assert message == resp.json().get("message")